package com.feng.study.demo.mq;

//import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class RabbitMqSender {

//    public static final String QUEUENAME = "chatbot";
//
//    @Autowired
//    private AmqpTemplate rabbitTemplate;
//
//    public void send() {
//        String context = "hello " + new Date();
//        System.out.println("Sender:" + context);
//        this.rabbitTemplate.convertAndSend(QUEUENAME, context);
//    }
//
//    public void send02(){
//        System.out.println("发送消息");
//    }
}
